import java.sql.*;
import java.util.*;
class JbbcDemo12 
{
	public static void main(String args[]) throws Exception
	{
		Class.forName("oracle.jdbc.driver.OracleDriver");
		Connection cn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","oracle");
		PreparedStatement ps = cn.prepareStatement("insert into employee values(400,'abc',100000)");
		int count = ps.executeUpdate();
		System.out.println(count);
		
		
		
		ps.close();
		cn.close();
		ps = null;
		cn = null;
	}

}
